<?php

class CatagoryController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $catagoryModel = new Application_Model_CatagoryModel();
        $catagories = $catagoryModel->getAllCatagory();
        $this->view->assign("catagories", $catagories);
        $catagory = $catagories->current();
        $phones = $catagory->findDependentRowset('Application_Model_DbTable_Phone');
        $this->view->assign("phones", $phones);
    }


}

